import 'package:flutter_demo2/file_cache_test/file_cache_test_page.dart';
import 'package:route/route.dart';
import 'package:flutter_demo2/pages.dart';
import 'package:flutter_demo2/router_test/page1.dart';
import 'package:flutter_demo2/router_test/page2.dart';
import 'package:flutter_demo2/router_test/page3.dart';
import 'package:flutter_demo2/router_test/test_route_page.dart';

List<RouteBuilder> pages = [
  RouteBuilder(FlutterPages.testPage1, (args) {
    String name = args["name"] ?? "";
    int age = args["age"] ?? 9999;
    return Page1(name: name, age: age);
  }),
  RouteBuilder(FlutterPages.testPage2, (args) {
    return const Page2();
  }),
  RouteBuilder(FlutterPages.testPage3, (args) {
    return const Page3();
  }),
  RouteBuilder(FlutterPages.testPageRoute, (args) {
    return const TestRoutePage();
  }),
  RouteBuilder(FlutterPages.testFileCachePage, (args) {
    return const FileCacheTestPage();
  }),
];
